package com.GetIp;
import java.net.URL;
import java.util.Date;
import java.net.HttpURLConnection;

public class Main100 {
    public static void main(String[] args)throws Exception
    {
        URL url=new URL("http://www.baidu.com");
        HttpURLConnection httpCon=(HttpURLConnection)url.openConnection();
        long date=httpCon.getDate();
        if(date==0){
            System.out.println("无法修改信息");
        }else{
            System.out.println("文件最后修改时间："+new Date(date));
        }

    }
}
